// JavaScript Document
//document.write("nihao");


//var today=new Date();
//var weekday=today.getDate();
//document.write("今天是星期" + weekday);
//switch(weekday)
//{ 
//case 5: document.write("555555555");
//break;
//case 6: document.write("6666666");
//break;
//case 0: document.write("0000000000");
//break;
//default: document.write("555555555");
//break;
//	}



//var num1=prompt("请输入第一个数字");
//var op=prompt("请输入运算符字");
//var num2=prompt("请输入第二个数字");
//if(isNaN(num1)|| isNaN(num2))
//{  document.write("输入数字错误");}
//else
//{ 
//	if( op!="+" &&op!="-" && op!="*" && op!="/")
//	{ 
//	document.write("符号错误");
//	}
//	else
//	{
//	document.write(eval(num1 +op +num2));
//	}
//}



//function showhello(count){
//for(var i=0;i<count;i++){
//	document.write("<h2>hello world</h2>");
//	}
//}
//var count= prompt("请输入次数");
//showhello(count);


//function getvalue(num1,num2){
//	var num;
//	num=parseFloat(num1)+parseFloat(num2)
//	return num;
//}
//var n1=prompt();
//var n2=prompt();
//document.write(getvalue(n1,n2));


//alert ("ggggggggggggggg");


//function showinfo(){
//	var flag=confirm("确认要删除吗？");
//	if(flag==true){
//		alert("删除成功");
//	}else{
//		alert("取消删除");
//	}
//}

//function open_adv(){
//	window.open("adv.html");
//window.open("adv.html","","height=380,width=320,toolbar=0,scrollbars=0,location=0,status=0,menubar=0,resize=0");
//window.open("adv.html","","fullscreen=yes");
//}

//function close_adv(){
//	window.close();
//}


<a href="javascript:location.href='flower.html';">查看鲜花详情</a>
//<a href="javascript:location.reload();">刷新</a>
//<a href="javascript:history.back();">返回</a>

//document.write("链接来源："+ document.referrer+"<br/>");
//document.write("当前地址"+document.URL)


//function changelink(){
//	document.getElementById("").innerHTML="ffff";
//	var ainput=document.getElementsByTagName("input");
//}



//function distime(){
//	var today=new Date();
//	var hh=today.getHours();
//	var mm=today.getMinutes();
//	var ss=today.getSeconds();
//	document.getElementById("").innerHTML="";
//}

//function inerval(){
//	timer=setInterval("distime()",1000);
//}
//clearInterval(timer);
//function shownode(){
//	var img=document.getElementById("");
//	var imgp=img.parentNode:
//	alert(imgp.nodeName);
//	var bodyfirstchild=imgp.firstChild;
//	alert(bodyfirstchild.nodeName);
//	var bodylast=imgp.lastChild;
//	alert(bodylast.nodeName);
//}

//function chang(){
//	var img=document.getElementsByTagName("img");
//	//img[0].setAttribute("src","");
//	img[0].src="";
//}
//
//
//function newNode(){
//	var img=document.createElement("img");
//	img.setAttribute("src","");
//	document.body.appendChild(img);
//}
//function addanswer(){
//	var lie=document.createElement("li");
//	var inpute=document.createElement("input");
//	inpute.setAttribute("type","text");
//	inpute.setAttribute("name","answer");
//	lie.appendChild(inpute);
//	var ole=document.getElementById("");
//	ole.appendChild(lie);
//}
//
//function dele(){
//	var img=document.getElementById("");
//	var imgp=img.parentNode;
//	imgp.remove(img);
//}

function addRow()
{
	var tableobj=document.getElementById("");
	var rownums=tableobj.rows.length;
	var newrow=tableobj.insertRow(rownus);
	var col1=newrow.insertCell(0);
	col1.innerHTML="";
	var col2=newrow.insertCell(1);
	col2.innerHTML="";
	col2.align="center";
	document.getElementById("").deleteRow(1);
	var fff=document.getElementById("").rows[0];
	fff.className="";
}


function editRow(cellObj)
{
	var trObj=cellObj.parentNode.parentNode;
	for(i=0;i<3;i++)
	{
		trObj.cells[i].firstChild.readOnly=false;
		trObj.cells[i].firstChild.className="";
	}
	cellObj.value="保存";
	cellObj.setAttribute("onclick","saveRow(this)");
}
function saveRow(cellObj)
{
	var trObj=cellObj.parentNode.parentNode;
	for(i=0;i<3;i++)
	{
		trObj.cells[i].firstChild.readOnly=true;
		trObj.cells[i].firstChild.className="inputNoBorder";
	}
	cellObj.value="修改";
	cellObj.setAttribute("onclick","editRow(this)");
}
function delRow(cellObj)
{
	var trObj=cellObj.parentNode.parentNode;
	var table=trObj.parentNode;
	table.deletRow(trObj.rowIndex);
}


var arrayFruit=new Array("b","g","a","f","k");
arrayFruit.sort();
var str=arrayFruit.join("-");
for(var i in arrayFruit){}
split();


function changeCity()
{
	var selProvice=document.getElementById("");
	var provice=selProvice.options[selProvice.selectedIndex].value;
	    provice=selProvice.value;
    var city=document.getElementById("");
	city.options.length=0;
	switch(provice)
	{
		case "河南省":city.add(new Option("郑州市","郑州市"),null);
					city.add(new Option("洛阳市","洛阳市"),null);
					city.add(new Option("信阳市","信阳市"),null);
					break;
		case "河北省":city.add(new Option("石家庄","石家庄"),null);
		             city.add(new Option("邯郸市","邯郸"),null);
					 break;
		case "山东省":
		        var option=document.createElement("option");
				option.value="青岛";
				option.appendChild(document.createTextNode("青岛"));
				city.appendChild(option);
				var option1=document.createElement("option");
				option1.value="烟台";
				option1.appendChild(document.createTextNode("烟台"));
				city.appendChild(option1);
				break;
		}
	
}


var provinces=new Array(
						new Array("00","请选择"),
						new Array("01","北京市"),
						new Array("02","湖北省"),
						new Array("03","四川省"),
						new Array("04","江苏省"),
						new Array("05","湖南省")
						);
var citys=new Array(
						new Array("0101","北京市"),
						new Array("0201","武汉"),
						new Array("0202","荆州"),
						new Array("0301","成都"),
						new Array("0302","绵阳"),
						new Array("0401","南京"),
						new Array("0402","苏州"),
						new Array("0501","长沙"),
						new Array("0502","株洲")
						);
function fillProvince()
{
	var selProvince=document.getElementById("");
	for(var i=0;i<provinces.length;i++)
	{
		var option=new Option(provinces[i][1],provinces[i][0]);
		selProvince.add(option ,null);
	}
	selProvince.options[0].selected=true;
}

function changeCity()
{
	var selProvice=document.getElementById("");
	var provinceCode=selProvice.options[selProvice.selectedIndex].value;
	var selCity=document.getElementById("");
	selCity.options.length=0;
	selCity.add(new Option("请选择","0000"),null);
	for(var i=0;i<citys.length;i++)
	{
		if(citys[i][0].substring(0,2)==proviceCode)
		{
			selCity.add(new Option(citys[i][0],citys[i][1]),null);
		}
	}
	selCity.options[0].selected=true;
}


<li onmouseover="this.style.backgroundImage='url(img/3.jpg)';"  onmouseout="this.className='out';">jjjjjj</li>


function disply()
{
	document.getElementById("").style.display="block";
	document.getElementById("").style.visibility="visibility"
	
}
function hide()
{
	document.getElementById("").style.display="none";
}

function show(id)
{
	var ul=document.getElementById("id");
	if(ul.style.display=="block")
	{
		ul.style.display="none";
	}else{
		ul.style.display="block"
	}
}

function test(div)
{
	var obj=document.getElementById(div);
	var left,top;
	if( obj.currentStyle){
		left=obj.currentStyle.left;
		top=obj.currentStyle.top;
	}
	else{
		left=document.defaultView.getComputedStyle(obj,null).left;
		top=document.defaultView.getComputedStyle(obj,null).top;
		
	}
	 
	alert("left"+left+"top"+top);
	left=parseInt(left)+20+"px";
	top=parseInt(top)+20+"px";
	
}

function getScroll()
{
	var obj=document.documentElement;
	alert("top"+obj.scrollTop+"left"+obj.scrollLeft);
}
window.onscroll=getScroll;



function check()
{
	var email=document.getElementById("").value;
	if(email==""){
		alert("EMAIL不能为空");
		return false;
	}
	if(email.indexOf("@")==-1||email.indexOf(".")==-1){
		alert("格式不正确");
		return false;
	}
	var user=document.getElementById("").value;
	if(user==""){
		alert("user不能为空");
		return false;
	}
	for(var i=0;i<user.length;i++)
	{
		var j=user.substring(i,i+1);
		if(isNaN(j)==false){
			alert("用户名不能包含数字");
		}
	}
	
}

function checkPhone()
{
	var wordText=document.getElementById("").value;
	var findText=document.getElementById("").value;
	var replaceText=document.getElementById("").value;
	var reg=eval("/"+findText+"/ig")
	var result=wordText.match(reg);
	var result=wordText.replace(reg,replaceText)
	
	var photo=document.getElementById("").value;
	var photo_prompt=document.getElementById("");
	photo_prompt.innerHTML="";
	var reg=/^\d{3,4}-\d{7,8}$/;
	REG=/^\w+@\w+(\.[a-zA-Z]{2,3}){1,2}$/
	if(reg.test(photo)==false){
		photo_prompt.innerHTML="";
		alert("llll");
	}
	
}


